import { useRouter } from 'next/router'

export const RouterButton = () => {
  const router = useRouter()
  return (
    <div style={{
      marginTop: '1rem', display:'flex', gap: '1rem'
    }}>
      <button onClick={() => router.back()}>Back</button>
      <button onClick={() => router.push('/')}>Home</button>
    </div>
  )
}
